import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final double cardHeight = 200.0;
  double cardWidth = 0.0;
  @override
  Widget build(BuildContext context) {
    cardWidth = MediaQuery.of(context).size.width;
    return new Container(
      color: Colors.grey[200],
      child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          mainAxisSize: MainAxisSize.max,
          children: <Widget>[
            new Container(
              color: Colors.white,
              margin: EdgeInsets.only(left: 5.0, right: 5.0, top: 5.0),
              constraints: new BoxConstraints.expand(
                  width: cardWidth, height: cardHeight),
            ),
            new Container(
              color: Colors.white,
              margin: EdgeInsets.only(left: 5.0, right: 5.0, top: 5.0),
              constraints: new BoxConstraints.expand(
                  width: cardWidth, height: cardHeight),
            ),
          ],
        ),
      ),
    );
  }
}
